import java.util.ArrayList;
import java.util.List;

/**
 * @Description:
 * @Created: with IntelliJ IDEA.
 * @author: 夏沫止水
 * @createTime: 2020-05-30 11:42
 **/
public class Main {

    public static void main(String[] args) {

        Array<Integer> arr = new Array<>();

        for (int i = 0; i < 10; i++) {
            arr.addLast(i);
        }
        System.out.println(arr + "\n");

        arr.add(1,100);
        System.out.println(arr + "\n");

        arr.addFirst(-1);
        System.out.println(arr + "\n");

        arr.remove(2);
        System.out.println(arr + "\n");

        arr.removeElement(4);
        System.out.println(arr + "\n");

        arr.removeLast();
        System.out.println(arr + "\n");



    }

}
